﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;
using System.Web.Providers.Entities;

namespace Leiktuther.Models
{
    public class Player : LogOnModel
    {
        [Key]
        public int ID { get; set; }

        [Display(Name = "Nafn")]
        public string Name { get; set; }

        [Display(Name = "Netfang")]
        public string Email { get; set; }

        [ForeignKey("ID")]
        public virtual User User { get; set; }

        //public virtual ICollection<Statistic> Stats { get; set; }

        /*public IEnumerable<Statistic> ShowStat
        {
            get 
            {
               // return Stats.Where( s => s.Win < 10 );
            }
        }*/


    }
}
